package com.lzw.tool;

import io.netty.util.HashedWheelTimer;

import java.util.concurrent.TimeUnit;

public class TaskTest {
    public static void main(String[] args) throws InterruptedException {
        final HashedWheelTimer hashedWheelTimer = new HashedWheelTimer();
        hashedWheelTimer.newTimeout((a) -> {
                    System.out.println(1);
                }
                , 1, TimeUnit.SECONDS);
        TimeUnit.SECONDS.sleep(10);
    }
}
